<template>
    <div class="search">
         <!-- 头部 -->
        <div class="header">
            <img src="../../assets/image/logo.png" alt="">
        </div>

        <!-- 面包屑 -->
        <el-breadcrumb separator="/">
  <el-breadcrumb-item :to="{ path: '/admin' }">首页</el-breadcrumb-item>
  <el-breadcrumb-item>搜索列表页</el-breadcrumb-item>
</el-breadcrumb>
        <div class="list1">
                    <div class="list-item" v-for="item in list" :key="item.id">
                            <div class="listitemleft">
                                <img :src="item.imgurl" alt="">
                            </div>
                            <div class="listitemright">
                                <p>类别：{{item.catagory}}</p>
                                <p>{{item.bookname}}</p>           
                                <p>作者：{{item.author}}</p>
                                <p>{{item.date}}</p>
                                <p><a :href="item.bookurl">全文阅读</a></p>
                            </div>
                        </div>
                    </div>
        </div>
</template>
<script>
export default {
    data(){
        return {
            list:[]
        }
    },
  mounted(){
      this.list=this.$store.state.searchlist
  }  
}
</script>
<style scoped lang="less">

.search{
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    min-height: 100vh;
      .header{
        padding-left: 200px;
        padding-right: 200px;
        height:100px;
        max-width:100%;
        position: relative;
        img{
            height: 100px;
        }     
    }

    .el-breadcrumb{
        height:40px;
        background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);
        font-size: 20px;
        line-height: 40px;
        padding-left: 20px;
        .el-breadcrumb-item{
            cursor:pointer;
        }
    }

              .list1{
                        margin-top: 20px;
                       padding:20px 150px;
                        display: flex;
                        flex-wrap: wrap;
                        background: linear-gradient(-180deg, #BCC5CE 0%, #929EAD 98%), radial-gradient(at top left, rgba(255,255,255,0.30) 0%, rgba(0,0,0,0.30) 100%);
                        background-blend-mode: screen;
                        .list-item{
                            width:30%; 
                            display: flex;
                            margin-left:5px;
                            .listitemleft{
                                flex:1;
                                img{
                                    width:80%;
                                    height: 80%;
                                    border:2px solid #ccc;
                                }
                            }
                           .listitemright{
                                flex:1;
                                display: flex;
                                flex-direction:column;
                                padding: 5px 5px;
                                p{
                                    flex:1;
                                    font-size: 14px;
                                   overflow: hidden;
                                    display: -webkit-box;
                                    -webkit-line-clamp: 2;
                                    -webkit-box-orient: vertical;
                                }
                           }
                        }
                            
                        }
        
}
</style>